.storage-manager-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.storage-manager-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.storage-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #e9ecef;
  color: #333;
}

.storage-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.storage-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-item .label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.summary-item .value {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.storage-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clean-btn {
  background: #28a745;
  color: white;
}

.clean-btn:hover {
  background: #1e7e34;
}

.danger-btn {
  background: #dc3545;
  color: white;
}

.danger-btn:hover {
  background: #c82333;
}

.file-list h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.file-items {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.2s ease;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item:hover {
  background: #f8f9fa;
}

.file-info {
  flex: 1;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.file-type {
  font-size: 16px;
}

.file-details {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.delete-file-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #dc3545;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.delete-file-btn:hover {
  background: #f8f9fa;
  transform: scale(1.1);
}

.storage-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.storage-tips {
  margin: 0;
}

.storage-tips p {
  margin: 4px 0;
  font-size: 12px;
  color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .storage-manager-overlay {
    padding: 10px;
  }

  .storage-manager-modal {
    max-height: 90vh;
  }

  .storage-header {
    padding: 15px;
  }

  .storage-content {
    padding: 15px;
  }

  .storage-summary {
    flex-direction: column;
    gap: 10px;
  }

  .storage-actions {
    flex-direction: column;
  }

  .action-btn {
    justify-content: center;
  }

  .file-item {
    padding: 10px 12px;
  }

  .file-name {
    font-size: 14px;
  }

  .file-details {
    flex-direction: column;
    gap: 2px;
  }

  .storage-footer {
    padding: 12px 15px;
  }
}